package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsHbfxInterest;
import org.jeecg.modules.ws.mapper.WsHbfxInterestMapper;
import org.jeecg.modules.ws.service.IWsHbfxInterestService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.List;

/**
 * @Description: 还本付息_付息详情
 * @Author: jeecg-boot
 * @Date:   2025-04-24
 * @Version: V1.0
 */
@Service
public class WsHbfxInterestServiceImpl extends ServiceImpl<WsHbfxInterestMapper, WsHbfxInterest> implements IWsHbfxInterestService {

    @Override
    public List<WsHbfxInterest> listByCode(String bondCode, String projectCode) {
        LambdaQueryWrapper<WsHbfxInterest> query = Wrappers.lambdaQuery(WsHbfxInterest.class);
        query.eq(WsHbfxInterest::getBondCode,bondCode).eq(WsHbfxInterest::getProjectCode,projectCode);
        return list(query);
    }
}
